#pragma once
class CTools
{
public:
	CTools();
	~CTools();
	static void DrawToBackground(int posx, int posy, IplImage *Bg, IplImage *img, int keyb, int keyg, int keyr);
	static bool DetectCollision(CvRect r1, CvRect r2);
	static bool DetectAdjacent(CvPoint pos1, CvPoint pos2);
	static bool DetectOverlap(CvPoint pos1, CvPoint pos2);
};

